
<table bgcolor="#CCCCCC" width="755" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td>
     <table bgcolor="#F8F8F8" height="300" width="100%" border="0" cellspacing="5" cellpadding="5">
       <tr>
        <td>
          <table border="0" cellspacing="0" cellpadding="0">
	          <tr>
			<?php
			$loop = 0;
			foreach ($query->result() as $row):
				if($row->thumbs=="" || $row->thumbs==false){
					$row->thumbs = site_url("images/nopicture.jpg");
				} else {
					$que = $this->db->query("select thumbs from member where id_member='$row->id_member' limit 1");
					foreach ($que->result() as $res):
						$row->thumbs = site_url(array('dashboard','loadThumbs',$row->id_member));
					endforeach;
				}
			$loop++;
				if($loop % 6==1){
						echo "</tr><tr>";
					}
			?>	
			 <td width="140" align="center" valign="top">
			 <a href="<?php echo site_url(array('member','project',$row->id_member))?>">
			 
			 <img class="picture" width="90" src="<?php echo $row->thumbs?>" /></a>
			<br />
			 <a href="<?php echo site_url(array('project','openAlbum'))?>"><?php echo $row->username ?></a>
			<br /><br />
			</td>
			<?php endforeach ?> 
		</tr>      
         </table>
        </td>
       </tr>
     </table>
    </td>
  </tr>
</table>
